/**
 *	本体建模路由配置
 **/

export default [
  {
    path: "/ontologyModel",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/ontologyModel/ontologyManagement",
    meta: {
      title: "领域本体建模",
      icon: "icon-fangkuai",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "ontologyManagement",
        component: () => import("@/views/ontologyModel/ontologyManagement"),
        name: "OntologyManagement",
        meta: {
          title: "本体管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "ontologyManagement/edit",
        component: () => import("@/views/ontologyModel/edit"),
        name: "OntologyModelCreate",
        meta: {
          // title: "可视化建模",
          title: "本体可视化",
          roles: ["superAdmin", "commonAdmin"],
          // activeMenu: "/ontologyModel/ontologyManagement",
        },
      },
      {
        path: "ontologyManagement/index",
        component: () => import("@/views/ontologyModelFrame/index"),
        name: "ontologyModelFrame",
        meta: {
          // title: "可视化建模",
          title: "可视化建模",
          roles: ["superAdmin", "commonAdmin"],
          // activeMenu: "/ontologyModel/ontologyManagement",
        },
      },
      {
        path: "ontologyCategoryManagement",
        component: () =>
          import("@/views/ontologyModel/ontologyCategoryManagement"),
        name: "OntologyCategoryManagement",
        meta: {
          title: "本体类管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "ontologyCategoryProperty/property/:id/:concept",
        component: () =>
          import("@/views/ontologyModel/ontologyCategoryProperty"),
        name: "OntologyCategoryProperty",
        hidden: true,
        meta: {
          title: "本体类管理-属性",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/ontologyModel/ontologyCategoryManagement",
        },
      },
      {
        path: "ontologyRelationManagement",
        component: () =>
          import("@/views/ontologyModel/ontologyRelationManagement"),
        name: "OntologyRelationManagement",
        meta: {
          title: "本体关系管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "ontologyRelationProperty/property/:id/:relationName",
        component: () =>
          import("@/views/ontologyModel/ontologyRelationProperty"),
        name: "OntologyRelationProperty",
        hidden: true,
        meta: {
          title: "本体关系管理-边属性",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/ontologyModel/ontologyRelationManagement",
        },
      },
      // {
      //   path: "elementManagement",
      //   component: () => import("@/views/ontologyModel/elementManagement"),
      //   name: "ElementManagement",
      //   meta: {
      //     title: "组件管理",
      //     roles: ["superAdmin", "commonAdmin"],
      //   },
      // },
    ],
  },
];
